#include"comm.hpp"

int main()
{
    cout<<"hello prcess a"<<endl;
    //int shmid=GetShareMem();
    int shmid=CreateShm();
    sleep(5);
    
    char* shmaddr=(char*)shmat(shmid,nullptr,0);

    sleep(5);

    shmdt(shmaddr);
    sleep(5);

    shmctl(shmid,IPC_CREAT,nullptr);
    sleep(5);

    return 0;
}